<?php

// echo the FAQs
function FAQ_question() {

	global $post;
	
	$soot_seekers_details = get_post_meta( $post->ID, FAQ_META_KEY, true );
	
	if( $soot_seekers_details == false ) {
	
		return;		// this return is not needed, but there to keep the function from being empty
		
	} else {
	
		echo '<div class="FAQ-wrapper"><div class="FAQ-question">'.$soot_seekers_details['question'].'</div><br class="clear" /></div>';
		
	}

}

// echo the answers of the FAQs
function FAQ_answer() {

	global $post;
	
	$soot_seekers_details = get_post_meta( $post->ID, FAQ_META_KEY, true );
	
	if( $FAQ_info_details == false ) {
	
		return;		// this return is not needed, but there to keep the function from being empty
		
	} else {
	
		echo '<div class="FAQ-wrapper"><div class="FAQ-answer">'.$soot_seekers_details['answer'].'</div><br class="clear" /></div>';
		
	}

}

// echo all of the info for the FAQ
function FAQ_full( $index ) {

	global $post;
	
	$soot_seekers_details = get_post_meta( $post->ID, FAQ_META_KEY, true );
	
	if( $soot_seekers_details == false ) {
	
		return;		// this return is not needed, but there to keep the function from being empty
		
	} else {
	
		echo '<div class="FAQ-wrapper"><div class="FAQ-post-number-wrapper"><div class="FAQ-post-number">'.($index + 1).'</div></div><div class="FAQ-text"><div class="FAQ-question">'.$soot_seekers_details['question'].'</div><div class="FAQ-answer">'.wpautop( $soot_seekers_details['answer'] ).'</div></div><br class="clear" /></div>';
		
	}

}

?>